#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
using namespace std;
int main()
{
    int fd = open("file.txt", O_CREAT|O_WRONLY|O_APPEND);
    char arr[] = "Hello Ubuntu";
    write(fd, arr, strlen(arr));
    return 0;
}
